package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

/**
 * @author 陈辉
 * @data 2023 9:13
 */
public interface WmChannelService extends IService<WmChannel> {
    /**
     * 查询所有频道
     *
     * @return
     */
    ResponseResult findAll();

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);

    /**
     * 根据频道名称模糊分页查询
     * @param wmChannelDto
     * @return
     */
    ResponseResult findByPage(WmChannelDto wmChannelDto);

    /**
     * 新增频道
     * @param wmChannel
     * @return
     */
    ResponseResult insert(WmChannel wmChannel);

    /**
     * 修改频道
     * @param wmChannel
     * @return
     */
    ResponseResult reNew(WmChannel wmChannel);
}
